package com.lucker.service.caipiao;

import java.util.Date;

import org.springframework.http.ResponseEntity;

import com.lucker.ds.model.CaiPiao;
import com.lucker.ds.model.CaiPiaoOpencode;
import com.lucker.service.BaseService;

public interface CaiPiaoService extends BaseService<CaiPiao, Long> {
	
	public void commitCaiPiao(int typeId,String openCode,String domainName,int domainId,String issueNo,String commit_time);
	
	/***
	 * 计算方法  每天第一次开奖时间 + (期数的序号 * 10) : 例如
	 * @param issueNo 期数
	 * @return
	 */
	//public Date getOpenCodeTimeByIssueNo(String issueNo);
	
	
	/***
	 * 
	 * @param openCode
	 * @param source
	 * @param issueNo
	 * @param commit_time
	 * @param cai_id
	 */
	public void commitCaiPiao(String openCode,String source,String issueNo,String commit_time,String cai_id) ;
	
	
	public CaiPiao getCaiPiaoObjectByCaiId(int caiId);
	
	
	/***
	 * 
	 * @param openCode ： 正确的开奖信息,至少必须包含 期号，cai_id
	 * @return
	 */
	public ResponseEntity<?> update_push_opencode(CaiPiaoOpencode openCode);
}
